﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace WP7DSMClient.Services
{
    /// <summary>
    /// Provides loggin services to the application.
    /// </summary>
    public interface ILoginService : INotifyPropertyChanged
    {
        /// <summary>
        /// Indicates if the user is loggued.
        /// </summary>
        bool IsLogged { get; }

        /// <summary>
        /// Try to log the user.
        /// </summary>
        /// <param name="userName">UserName used to log in.</param>
        /// <param name="password">Password used to log in.</param>
        /// <returns><b>true</b> if the user is logged, <b>false</b> otherwise.</returns>
        bool Log(string userName, string password);
    }
}
